package org.luxor.digital.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.luxor.commons.core.validator.group.UpdateGroup;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 系统配置信息表
 *
 * @author Mark @date 2020-07-26 14:19:09
 */
@Data
@TableName("tb_sys_config")
@ApiModel(description = "系统配置信息表")
public class SysConfigEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键Id")
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "configId不能为空", groups = UpdateGroup.class)
    private Long id;

    @ApiModelProperty(value = "key")
    private String key;

    @ApiModelProperty(value = "value")
    private String value;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "是否启动(1-启用；0-禁用)")
    private Boolean enabled;

    @ApiModelProperty(value = "逻辑删除(1-删除；0-未删除)")
    private Boolean deleted;


}
